<?php

namespace app\admin\model;

use think\Model;

class Node extends Model
{
    //查询父级权限
    public static function getParentNodeAll()
    {
        return self::where('pid', 0)->select();
    }

    //添加权限
    public static function addNode($addData)
    {
        return self::create($addData, true);//过滤非数据表字段
    }
}
